package com.zhenhao.xsq.ui.activity.door.presenter;


import com.zhenhao.xsq.data.api.HttpAPIWrapper;
import com.zhenhao.xsq.ui.activity.door.InviteActivity;
import com.zhenhao.xsq.ui.activity.door.contract.InviteContract;

import javax.inject.Inject;

import androidx.annotation.NonNull;
import io.reactivex.disposables.CompositeDisposable;

/**
 * @author William
 * @Package com.yxld.yxchuangxin.xsq.ui.activity.
 * @Description: presenter of InviteActivity
 * @date 2020/06/01 11:20:51
 */
public class InvitePresenter implements InviteContract.InviteContractPresenter {

    HttpAPIWrapper httpAPIWrapper;
    private final InviteContract.View mView;
    private CompositeDisposable mCompositeDisposable;
    private InviteActivity mActivity;

    @Inject
    public InvitePresenter(@NonNull HttpAPIWrapper httpAPIWrapper, @NonNull InviteContract.View view,
                           InviteActivity activity) {
        mView = view;
        this.httpAPIWrapper = httpAPIWrapper;
        mCompositeDisposable = new CompositeDisposable();
        this.mActivity = activity;
    }

    @Override
    public void subscribe() {

    }

    @Override
    public void unsubscribe() {
        if (!mCompositeDisposable.isDisposed()) {
            mCompositeDisposable.dispose();
        }
    }


}